#pragma once
#include<stdio.h>
#include<assert.h>
#include<stdbool.h>
#include<stdlib.h>

typedef int HPDateType;

typedef struct Heap
{
	HPDateType* a;
	int size;
	int capacity;

}Heap;

void HeapInit(Heap* php);

void HeapPush(Heap* php, HPDateType x);

bool HeapEmpty(Heap* php);

void HeapDestory(Heap* php);

int HeapSize(Heap* php);

void HeapPop(Heap* php);

HPDateType HeapTop(Heap* php);
